<?php

    require_once('../globaldb.php');


    if ($db->getStatus()) {
        $id = $_GET['id'];
        $sql = 'select title,content,create_time from article where aid='.$id;
        $article = $db->dbQuery($sql,1);
        include_once('../views/article.phtml');
    } else {
        echo 'db connect error';
    }
